package com.ruihang.generalibrary.ui.widget;

import android.content.Context;
import android.support.v7.widget.AppCompatButton;
import android.util.AttributeSet;

import com.ruihang.generalibrary.utils.FontProvider;


public class CustomFontButton extends AppCompatButton {
    public CustomFontButton(Context context) {
        super(context);
        setTypeface(FontProvider.getTypeface(context));
    }

    public CustomFontButton(Context context, AttributeSet attrs) {
        super(context, attrs);
        setTypeface(FontProvider.getTypeface(context));
    }

    public CustomFontButton(Context context, AttributeSet attrs, int defStyle) {
        super(context, attrs, defStyle);
        setTypeface(FontProvider.getTypeface(context));
    }
}
